<?php

class Default_Models_Customer extends Libs_Model {

    function __construct() {
        parent::__construct();
    }

    public function checkLogin($u, $p) {
        $sql = "select * from tbl_customers where email = '$u' and password = '$p'";
        return $this->db->fetchOne($sql);
    }

    public function addCus($data) {
        $this->db->prepareInsert($data);
        $this->db->insert("tbl_customers");
    }

}
